05_01 Application API

Application API

So far, we've built projects using what's called the Global API, let's explore the other way to create projects..the Application API


Application API

  • Single Page Apps
  • Component Structure
  • Build Process

The Application API was designed to build Apps, so it's not made for creating pages, but entire websites.

If you've enjoyed how we worked with components in the previous chapter, you'll be happy to know that everything in the application API is centered around components.

Because of it's more complex nature, you can't add this to an existing project using a script tag, it requires build processes, which are managed by a platform called Node.js


Pre-requisites

That does mean that before you get going, you'll need to have some experience working with Node.js, specifically npm...the Node Package Manager that allows you to install modules. Modules are little plugins or extensions that help you build apps.

You'll also need to understand how to work with Git and Github. Git is how developers use version control to manage projects, and Github is a version control system where most modules and applications are stored including the Vue.js project itself.

Finally, you'll need to be comfortable using a terminal tool. When you Install Git on a PC you'll have the option of installing Gitbash. It makes it easier to run the linux commands that are common when working with node projects.


Official CLI

Command Line Interfacego.raybo.org/2Ci4

npm install -g @vue/cli  # npm

Vue.js has an official CLI project. A CLI is a command line interface...normally a terminal tool that sets up a process that helps you build an application.

You can find more information about the Vue CLI at this URL. ยป

You can install the CLI using npm, the Node Package manager that comes when you install node.js with a command like this.

If prefer using the yarn project, you can use this command instead.